package lottery;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**派奖记录
 * @author Administrator
 *
 */
@Entity
@Table
public class PayRewardRecord {
	private int id;
	private String orderId;
	private int lotteryId;
	private String lotteryName;
	private int betwayId;
	private String betwayName;
	private int isWin; //0-no|1-yes
	private int isPay; //是否派发0-no|1-yes
	private double amount;  //派发奖金
	private int winCount; 
	private double returnPoint;
	private double returnAmount;
	private Date createDate;
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public int getLotteryId() {
		return lotteryId;
	}
	public void setLotteryId(int lotteryId) {
		this.lotteryId = lotteryId;
	}
	@Column(length=30)
	public String getLotteryName() {
		return lotteryName;
	}
	public void setLotteryName(String lotteryName) {
		this.lotteryName = lotteryName;
	}
	public int getBetwayId() {
		return betwayId;
	}
	public void setBetwayId(int betwayId) {
		this.betwayId = betwayId;
	}
	@Column(length=30)
	public String getBetwayName() {
		return betwayName;
	}
	public void setBetwayName(String betwayName) {
		this.betwayName = betwayName;
	}
	public int getIsWin() {
		return isWin;
	}
	public void setIsWin(int isWin) {
		this.isWin = isWin;
	}
	public int getIsPay() {
		return isPay;
	}
	public void setIsPay(int isPay) {
		this.isPay = isPay;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public int getWinCount() {
		return winCount;
	}
	public void setWinCount(int winCount) {
		this.winCount = winCount;
	}
	public double getReturnPoint() {
		return returnPoint;
	}
	public void setReturnPoint(double returnPoint) {
		this.returnPoint = returnPoint;
	}
	public double getReturnAmount() {
		return returnAmount;
	}
	public void setReturnAmount(double returnAmount) {
		this.returnAmount = returnAmount;
	}
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
	
}
